<%@ page import="ar.com.photo_admin.domain.Photographer"%>
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="layout" content="main">
</head>
<body>
	<div class="page-header">
		<h1>
			<g:message code="notifications" />
		</h1>
	</div>

	<g:if test="${flash.message}">
		<div class="alert alert-success">
			<a class="close" data-dismiss="alert">×</a>
			<div class="message">
				${flash.message}
			</div>
		</div>
	</g:if>


	<g:form id="configForm" class="form-horizontal"
		controller="notificationsConfiguration" action="save">

		<div class="row">
			<table class="table table-striped span12">
				<thead>
					<tr>
						<th></th>
						<th><g:message code="systemNotifications" /></th>
						<th><g:message code="mailNotifications" /></th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td><g:message
								code="photographer.newOrderNotification.enabled" /></td>
						<td><g:checkBox name="systemNewOrder"
								value="${notificationsInstance?.systemNewOrder}" /></td>
						<td><g:checkBox name="mailNewOrder"
								value="${notificationsInstance?.mailNewOrder}" /></td>
					</tr>
					<tr>
						<td><g:message
								code="photographer.orderStatusChangeNotification.enabled" /></td>
						<td><g:checkBox name="systemOrderStatusChange"
								value="${notificationsInstance?.systemOrderStatusChange}" /></td>
						<td><g:checkBox name="mailOrderStatusChange"
								value="${notificationsInstance?.mailOrderStatusChange}" /></td>
					</tr>
					<tr>
						<td><g:message
								code="photographer.newMessage.enabled" /></td>
						<td><g:checkBox name="systemNewMessage"
								checked disabled="disabled"/></td>
						<td><g:checkBox name="mailNewMessage"
								value="${notificationsInstance?.mailNewMessage}" /></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="clear"></div>

		<div id="btn-group" class="btn-group">
			<button type="submit" class="btn btn-success">
				<g:message code="save" />
			</button>
			<g:link class="btn btn-success"
				controller="notificationsConfiguration" action="index">
				<g:message code="cancel" />
			</g:link>
		</div>
	</g:form>

	<div class="separator"></div>
</body>
</html>